package com.mygdx.game.model;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.math.Vector2;

public class Rock {

	Texture image;
	
	Vector2 position;
	Vector2 velocity;
	float radius;
	
	public Rock() {
		image = new Texture("rock.png");
		position = new Vector2();
		radius = image.getWidth() / 2;
	}
	
	public Texture getImage() {
		return this.image;
	}
	
	public void setPosition(Vector2 position) {
		this.position = position;
	}
	
	public void setVelocity(Vector2 velocity) {
		this.velocity = velocity;
	}
	
	public void mulAddAtTime(float deltaTime) {
		this.position.mulAdd(this.velocity, deltaTime);
	}
	
	public float getX() { return position.x; }
	public float getY() { return position.y; }
	public float getR() { return radius; }
}
